package com.design.pattern.structure.adapter;

import com.design.pattern.entry.bag.AppleBag;
import com.design.pattern.entry.fruit.Orange;

/**
 * 适配模式
 *
 * @author gyf
 * @create 2018-12-20 20:26
 **/
public class AdapterClient {
    public static void main(String[] args) {
        Orange orange = new Orange("橘子", 12);
        AppleBag appleBag = new AppleBag();
        OrangeBagAdapter orangeBagAdapter = new OrangeBagAdapter(appleBag);
        orange.pack(orangeBagAdapter);
    }
}
